﻿.datetime-range {
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    color: #606266;
    display: inline-block;
    height: 40px;
    outline: none;
    transition: border-color .2s cubic-bezier(.645,.045,.355,1);
    padding: 3px 10px;
    position: relative;
}

    .datetime-range:hover {
        border-color: #c0c4cc;
    }

    .datetime-range.active {
        border-color: #409eff
    }

    .datetime-range.disabled,
    .datetime-range.disabled input {
        background-color: #e9ecef;
    }

.datetime-range-bar {
    display: inline-flex;
    align-items: center;
}

    .datetime-range-bar .datetime-range-input {
        border: none;
        outline: none;
        display: inline-block;
        line-height: 32px;
        margin: 0;
        padding: 0;
        text-align: center;
        color: #606266;
        cursor: pointer;
        width: 80px;
    }

    .datetime-range-bar .datetime-range-input-icon {
        cursor: pointer;
    }

    .datetime-range-bar .range-separator {
        padding: 0 5px;
        color: #303133;
    }

.datetime-range.disabled,
.datetime-range.disabled .datetime-range-bar .datetime-range-input,
.datetime-range.disabled .datetime-range-bar .datetime-range-input-icon {
    cursor: not-allowed;
}

.range-panel-body {
    display: flex;
}

    .range-panel-body .picker-panel {
        box-shadow: none;
        border: none;
    }

        .range-panel-body .picker-panel:first-child {
            border-right: 1px solid #ced4da;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

    .range-panel-body .date-picker-header-label {
        cursor: unset;
    }

        .range-panel-body .date-picker-header-label:hover {
            color: inherit;
        }

.range-panel-footer {
    padding: 0.5rem;
}

.popover-datetime-range {
    max-width: unset;
}

    .popover-datetime-range .popover-body {
        padding: 0;
    }

.range-clear {
    border-radius: 50%;
    border: 1px solid #9d9d9d;
    padding: 1px;
    display: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 12px;
}

.datetime-range:hover:not(.disabled) .range-clear {
    display: flex;
}
